﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;

namespace Macds.Core.IoC
{
    public class ParameterElement : ConfigurationElement
    {
        [ConfigurationProperty("name", IsRequired = true)]
        public String Name
        {
            get { return (String)this["name"]; }
            set { this["name"] = value; }
        }

        [ConfigurationProperty("object", IsRequired = false)]
        public String Object
        {
            get { return (String)this["object"]; }
            set { this["object"] = value; }
        }

        [ConfigurationProperty("value", IsRequired = false)]
        public String Value
        {
            get
            {
                return (String)this["value"];
            }
            set { this["value"] = value; }
        }

        [ConfigurationProperty("valueType", IsRequired = false, DefaultValue = "")]
        public String ValueType
        {
            get { return (String)this["valueType"]; }
            set { this["valueType"] = value; }
        }

        public override string ToString()
        {
            return Name.ToString();
        }
    }
}
